import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-11-20
 * Time: 23:15
 */
public class Test {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            // 注意 hasNext 和 hasNextLine 的区别
            while (in.hasNextLine()) { // 注意 while 处理多个 case
                String s1 = in.nextLine();
                String s2 = in.nextLine();
                List<String> list = new ArrayList<>();
                int flag = 0;
                StringBuilder str = new StringBuilder();
                for(int i = 0; i < s1.length(); i++){
                    char ch = s1.charAt(i);
                    if(ch == '"'){
                        flag++;
                    }
                    if(flag == 0){
                        if(ch == ','){
                            list.add(str.toString());
                            str = new StringBuilder();//
                            continue;
                        }
                        str.append(ch);
                    }else{
                        str.append(ch);
                        if(flag == 2){
                            list.add(str.toString());
                            str = new StringBuilder();
                            flag = 0;
                            i++;
                            continue;
                        }
                    }
                }
                list.add(str.toString());
                if(list.contains(s2)){
                    System.out.println("Ignore");
                }else{
                    System.out.println("Important!");
                }
            }
        }
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] arr = new int[100001];
        arr[1] = 1; arr[2] = 2;
        for(int i = 3; i <= 100000; i++){
            arr[i] = (arr[i - 1] + arr[i - 2]) % 1000000;
        }

        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int n =in.nextInt();
            if(n <= 2){
                System.out.println(n);
                continue;
            }
            System.out.println(arr[n]);
        }
    }
}
